home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cug191 / testc.c < prev    next >
Text File  |  1986-07-10  |  380b  |  20 lines

  1. /* file testc.C */
  2. #include "a:stdio.h"
  3. #include "a:math.h"
  4. main()
  5. { int i ; float sq(),cu() ;
  6.  for (i= 0; i < 15 ; i++)
  7.  printf("%d %f %f\n",i,sq( (float) i),cu( (float) i) ) ;
  8. }
  9.  
  10.  
  11.  
  12. /* routines from library file, USRLIB.B*/
  13. /****************************************/
  14. float sq(x) float x ;
  15. {return(x*x) ; }
  16. /**/
  17. float cu(x) float x ;
  18. {return(x*sq(x)) ; }
  19. /**/
  20.